﻿package net.wangit.view.unit.component;

import net.wangit.view.element.ElementComponent;
import net.wangit.view.util.Html;

public class Frame
{

	private ElementComponent element;

	public Frame()
	{
	}

	public void write(StringBuffer html)
	{
		html.append("<frame name=\"").append(element.getId()).append("\"");
		Html.setAttribute(html, element.getCustom());
		Html.setSrc(html, element.getLink());
		html.append(">");
	}

	public void setElement(ElementComponent element)
	{
		this.element = element;
	}

	public ElementComponent getElement()
	{
		return element;
	}
}
